package com.web.option.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * @author wenzhuo
 * @create 2024-07-06 2024/7/6
 */
@Data
public class Option implements Serializable {

    Integer optionNumber;

    Integer customerNo;

    String customerName;

    String excde;

    String putAcNo;

    BigDecimal putAmount;

    String putCcy;

    String callAcNo;

    BigDecimal callAmount;

    String callCcy;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd")
    LocalDate tradeDate;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd")
    LocalDate expireDate;

    String buySellOption;

    String status;

    BigDecimal strikeRate;

    BigDecimal standardRate;

    String maker;

    String checker;

    String remark;

}
